package loengud.w11;

public class PrintThread extends Thread {

	String name;

	public PrintThread(String name) {
		this.name = name;
	}

	public void run() {
		for (int i = 1; i < 50; i++) {
			try {
				sleep((long) (Math.random() * 100));
			} catch (InterruptedException ie) {
			}

			System.out.print(name);
		}
	}

	public static void main(String args[]) {
		PrintThread a = new PrintThread("*");
		PrintThread b = new PrintThread("-");
		PrintThread c = new PrintThread("=");
		a.start();
		b.start();
		c.start();
	}
} // -PrintThread

